﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xplang.run;
using xplang.contexts;
using System.Diagnostics;

namespace xplang.abstractions
{
  [DebuggerDisplay("({type}){name}")]
  public class Variable
  {
    public Variable(Modifier modifier, String name, ClassRef type, Expression init)
    {
      this.modifier = modifier;
      this.name = name;
      this.type = type;
      this.init = init;
    }

    public readonly Modifier modifier;
    public readonly ClassRef type;
    public readonly String name;
    public Expression init;

    public bool byRef()
    {
      return false;
    }
  }
}
